home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / ftn / getarg.z / getarg
Encoding:
Text File  |  1998-10-30  |  1.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GGGGEEEETTTTAAAARRRRGGGG((((3333FFFF))))                                                          GGGGEEEETTTTAAAARRRRGGGG((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      getarg, iargc - return Fortran command-line argument
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ggggeeeettttaaaarrrrgggg((((iiii,,,, cccc))))
  13.      cccchhhhaaaarrrraaaacccctttteeeerrrr****NNNN cccc
  14.      iiiinnnntttteeeeggggeeeerrrr****4444 iiii
  15.  
  16.      iiiinnnntttteeeeggggeeeerrrr****4444 ffffuuuunnnnccccttttiiiioooonnnn iiiiaaaarrrrggggcccc(((())))
  17.      iiiinnnntttteeeeggggeeeerrrr jjjj
  18.  
  19.      ccccaaaallllllll ggggeeeettttaaaarrrrgggg((((iiii,,,, cccc))))
  20.      jjjj ==== iiiiaaaarrrrggggcccc(((())))
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      _g_e_t_a_r_g returns the _i-th command-line argument of the current process.
  24.  
  25.      _i_a_r_g_c returns the index of the last argument.
  26.  
  27.           foo arg1 arg2 arg3
  28.  
  29.      _g_e_t_a_r_g(_2, _c) would return the string ``arg2'' in the character variable
  30.      _c.
  31.  
  32.      _i_a_r_g_c would return 3 as the value of the function call.
  33.  
  34. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  35.      getopt(3C).
  36.  
  37. NNNNOOOOTTTTEEEESSSS
  38.      The compiler expects the existence of a Fortran MAIN_ program when these
  39.      functions are used.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.